//
//  User.h
//  SDDataTest
//
//  Created by sodao on 12-9-19.
//  Copyright (c) 2012年 sodao. All rights reserved.
//

#import "Person.h"

#define kEncode_boundSina       @"isSinaAuth"
#define kEncode_boundQQ         @"isTxAuth"
#define kEncode_boundRenRen     @"hasBoundRenRen"
#define kEncode_syncSina        @"isSinaSync"
#define kEncode_syncQQ          @"isTxSync"
#define kEncode_syncRenRen      @"hasSyncRenRen"
#define kEncode_alterComment    @"isAlterComment"
#define kEncode_alterParse      @"isAlterParse"
#define kEncode_alterFans       @"isAlterFans"
#define kEncode_alterPerMsg     @"isAlterPersonalMsg"
#define kEncode_canUseMC        @"canUseMC"
#define kEncode_canUseSC        @"canUseSC"
#define kEncode_lastToken       @"lastToken"


@interface User : Person
{

}
@property(nonatomic)BOOL hasSyncSina,hasSyncQQ,hasSyncRenRen;
@property(nonatomic)BOOL  hasBoundSina,
                            hasBoundQQ,
                        hasBoundRenRen,
                        isAlterComment,
                        isAlterParse,
                        isAlterFans,
                        isAlterPersonalMsg;
@property (nonatomic) int canUseMC;
@property (nonatomic) int canUseSC;
@property (nonatomic, retain) NSString* lastToken;
-(void)updateUserInfoByData:(NSData*)data;
-(void)updateUserInfoByDictionary:(NSDictionary *)dictionary;
@end
